package com.colorfruit.admin.business.service;

import com.colorfruit.admin.pojo.entity.FoundationPickGoodsAddress;
import com.colorfruit.admin.pojo.entity.FoundationUserReceiveAddress;
import com.colorfruit.framework.model.pojo.BaseResult;

import java.util.List;

public interface AddressService {

    //********************************用户地址******************************************
    /**
     * 添加用户收货地址
     * @return
     */
    BaseResult addUserReceiveAddress(FoundationUserReceiveAddress foundationUserReceiveAddress);

    BaseResult editUserReceiveAddress(FoundationUserReceiveAddress foundationUserReceiveAddress);

    /**
     * 获取用户地址
     * @param userId
     * @return
     */
    List<FoundationUserReceiveAddress> selectUserAddressList(String userId);

    /**
     * 删除地址
     * @param userId 用户ID
     * @param addressId 地址ID
     * @return
     */
    BaseResult deleteUserReceiveAddress(String userId, Long addressId);

    /**
     * 获取默认地址
     * @param userId
     * @return
     */
    FoundationUserReceiveAddress getDefaultAddress(String userId);

    /**
     * d
     * @param userId
     * @param addressId
     */
    BaseResult setDefaultAddress(String userId, Long addressId );


    //****************************拣货点地址******************************************

    /**
     * 获取拣货点地址列表
     * @return
     */
    List<FoundationPickGoodsAddress> selectPickGoodsAddressList();

    /**
     * 获取指定地址
     * @return
     */
    FoundationPickGoodsAddress getPickGoodsAddress(Long id);

}
